how to convert integer list to int array in java